<style type="text/css">
    legend.contest_legend{
        font-size: 14px;
        font-weight: bolder;
        padding: 3px;
    }
    .wp-media-buttons a {
        position: absolute;
        margin-top: -20px;
    }
    .column-template_id{
        width: 72px;
    }
</style>
<script type="text/javascript" >    
    stContestToolbox.on_submitform('#stContestToolbox');
</script>
<div class="w100p bgl">
    <div class="w100p bgr">

        <div class="inner_container" style="height: auto;">      
            <table class="widefat galleryVideo" cellspacing="0">
                <thead>
                    <tr>
                        <?php print_column_headers('stcontest_st_setting_template'); ?>
                    </tr>
                </thead>
                <tbody>
                    
                
            <?php foreach($templateList as $k => $t) { 
                echo "<tr id='{$k}'>"   
                        . "<td> {$k}  </td>"   
                        . "<td>
                                <div class='pos_rel'>{$t}"
                                . "<div class=\"row-actions short_action\">"
                                    . "<a target='_blank' href='../contest/preview.php?template={$k}'>Preview</a>"                                                                
                                . "</div>
                                </div>"
                        . "</td>"                      
                        . "</tr>";
            } ?>
            </tbody>
            </table>
        </div>
    </div>
</div>